package jwdt.xadmin.custom.bean;


import jwdt.xadmin.system.bean.TUser;

import com.ezerg.db.Jdb;
import com.ezerg.db.annotation.Column;
import com.ezerg.db.annotation.Table;

@Table(name="t_customlog", keys={"id"}, comment="")
public class TCustomLog implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	@Column(value="id", comment="")
	private Integer id;
	
	@Column(value="userid", comment="")
	private Integer userid;
	
	public String getUserfullname() {
		TUser user = (TUser)Jdb.get().get(TUser.class, userid);
		if(user == null) {
			return "";
		} else {
			return user.getFullname();
		}
	}
	
	public Integer getUserid() {
		
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(value="title", comment="客户名")
	private String title;
	
	@Column(value="content", comment="")
	private String content;
	
	@Column(value="dt", comment="")
	private String dt;
	
	@Column(value="customid", comment="")
	private Integer customid;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDt() {
		return dt;
	}

	public void setDt(String dt) {
		this.dt = dt;
	}

	public Integer getCustomid() {
		return customid;
	}

	public void setCustomid(Integer customid) {
		this.customid = customid;
	}

}
